home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / ixemul / sdk / man / cat4 / imp.0 < prev    next >
Encoding:
Text File  |  1998-06-15  |  2.6 KB  |  59 lines

  1.  
  2. IMP(4)                     UNIX Programmer's Manual                     IMP(4)
  3.  
  4. NNAAMMEE
  5.      iimmpp - IMP raw socket interface
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssyyss//ssoocckkeett..hh>>
  9.      ##iinncclluuddee <<nneettiinneett//iinn..hh>>
  10.      ##iinncclluuddee <<nneettiimmpp//iiff__iimmpp..hh>>
  11.  
  12.      _i_n_t
  13.      ssoocckkeett(_A_F___I_M_P_L_I_N_K, _S_O_C_K___R_A_W, _p_r_o_t_o)
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.      The raw imp socket provides direct access to the iimmpp network interface.
  17.      Users send packets through the interface using the send(2) calls, and re-
  18.      ceive packets with the recv(2),  calls.  All outgoing packets must have
  19.      an 1822 96-bit leader on the front.  Likewise, packets received by the
  20.      user will have this leader on the front.  The 1822 leader and the legal
  21.      values for the various fields are defined in the include file
  22.      <_n_e_t_i_m_p_/_i_f___i_m_p_._h>. The raw imp interface automatically installs the
  23.      length and destination address in the 1822 leader of all outgoing pack-
  24.      ets; these need not be filled in by the user.
  25.  
  26.      If the protocol selected, _p_r_o_t_o, is zero, the socket will receive all IMP
  27.      messages except RFNM and incompletes which are not input data for a ker-
  28.      nel protocol.  If _p_r_o_t_o is non-zero, only messages for the specified link
  29.      type will be received.
  30.  
  31. DDIIAAGGNNOOSSTTIICCSS
  32.      An operation on a socket may fail with one of the following errors:
  33.  
  34.      [EISCONN]        when trying to establish a connection on a socket which
  35.                       already has one, or when trying to send a datagram with
  36.                       the destination address specified and the socket is al-
  37.                       ready connected;
  38.  
  39.      [ENOTCONN]       when trying to send a datagram, but no destination ad-
  40.                       dress is specified, and the socket hasn't been connect-
  41.                       ed;
  42.  
  43.      [ENOBUFS]        when the system runs out of memory for an internal data
  44.                       structure;
  45.  
  46.      [ENOBUFS]        eight messages to the destination host are outstanding,
  47.                       and another eight are already queued for output;
  48.  
  49.      [EADDRNOTAVAIL]  when an attempt is made to create a socket with a net-
  50.                       work address for which no network interface exists.
  51.  
  52. SSEEEE AALLSSOO
  53.      intro(4),  inet(4),  imp(4)
  54.  
  55. HHIISSTTOORRYY
  56.      The iimmpp driver appeared in 4.2BSD.
  57.  
  58. 4.2 Berkeley Distribution       March 28, 1991                               1
  59.